/* 学生考试结果页面样式 */
.exam-result {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* 成绩概览 */
.result-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.score-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 10px;
}

.score-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.score-total {
    font-size: 1rem;
    opacity: 0.8;
}

.score-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.score-grade {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
    padding: 8px 16px;
    background: #d4edda;
    border-radius: 20px;
}

/* 结果统计 */
.result-stats {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.stat-value.correct {
    color: #28a745;
}

.stat-value.incorrect {
    color: #dc3545;
}

/* 题目回顾 */
.question-review {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.question-list {
    display: grid;
    gap: 20px;
}

.question-item {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.question-item.correct {
    background: #f8fff9;
    border-color: #d4edda;
}

.question-item.incorrect {
    background: #fff8f8;
    border-color: #f8d7da;
}

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.question-index {
    font-weight: bold;
    margin-right: 8px;
    color: #667eea;
    font-size: 1.1rem;
    min-width: 20px;
}

.question-title {
    flex: 1;
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
}

.question-score {
    color: #667eea;
    font-weight: bold;
    font-size: 0.9rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.question-content {
    display: grid;
    gap: 12px;
}

.your-answer,
.correct-answer-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.correct-answer {
    color: #28a745;
    font-weight: 600;
}

.incorrect-answer {
    color: #dc3545;
    font-weight: 600;
}

.explanation {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.explanation p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 操作按钮 */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.action-btn.back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn.back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn.history {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.action-btn.history:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.action-btn.download {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.action-btn.download:hover {
    background: #e9ecef;
    color: #333;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .exam-result {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .result-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .result-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .score-card {
        padding: 20px;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-number {
        font-size: 1.5rem;
    }

    .question-item {
        padding: 15px;
    }

    .explanation {
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-card,
.result-stats,
.question-review {
    animation: slideInUp 0.5s ease forwards;
}

.score-card {
    animation-delay: 0.1s;
}

.result-stats {
    animation-delay: 0.2s;
}

.question-review {
    animation-delay: 0.3s;
}